><

Saving optimized images



There are several ways to save an optimized image for use on the Web:

HTML and Images You can generate all files required to use your image as a Web page. This includes an HTML file and separate image files for the slices in the source image. The HTML file includes code for any Web effects--such as hypertext links, image maps, rollovers, and animations--in the document. The image files use the format and options specified in the optimization setting.

Images only You can save your image with the format and options specified in the optimization setting. If the source image contains multiple slices, each slice is saved as a separate file.

HTML only You can save the HTML code, but not the image data, for your image. In ImageReady, you can also create an HTML file using the Copy HTML command. This command lets you copy the HTML code for an optimized image to the Clipboard, and paste the HTML code into an HTML file. If you subsequently make changes to the source image, you can use the Update HTML command to update the HTML file.

When saving an optimized image with slices, you can choose to save all slices, or only the selected slices.

To save an optimized image:

1 (Photoshop) Choose File > Save for Web.

2 Select a view and apply optimization settings as described in Optimizing images.

3 Do one of the following:

  • (Photoshop) Click OK in the Save For Web dialog box.
  • (ImageReady) Choose File > Save Optimized to save the file in its current state. If you previously saved the optimized file using the File > Save Optimized command, applying the command again saves the file with the filename and Save options specified in the first save operation. The Save dialog box does not appear.
  • (ImageReady) Choose File > Save Optimized As to save an alternate version of the file with a different filename.

  • 4 Type a filename, and choose a location for the resulting file or files.

    5 Select a Save As Type option:

  • HTML and Images to generate an HTML file and save each slice as a separate image file.
  • Images Only to save each slice in the image as a separate file.
  • HTML Only to generate an HTML file but not save any image files.

  • 6 To set preferences for saving image files and HTML files, click Output Settings. (See Setting output options.)

    7 (ImageReady) Select Include GoLive Code to reformat HTML and JavaScript code so that rollovers will be fully editable in Adobe GoLive. Code is reformatted in the style used by GoLive (and may create a larger HTML file).

    You need not generate an HTML file to open a Web page in GoLive 5.0. Simply save the Web page as a Photoshop (PSD) file, and then import the file directly into GoLive. For more information, see the Adobe GoLive 5.0 User Guide.

    8 Choose an option for slices from the pop-up menu:

  • All Slices to save all slices in the image.
  • Selected Slices to save only the selected slices. If you select this option in conjunction with the HTML and Images option, ImageReady or Photoshop generates the HTML code based on the outermost bounds of the selected slices, and generates auto-slices as needed to create a complete HTML table.

  • Note: You must select the desired slices before starting this procedure.

  • A slice selection to save only the slices in the selection. You must save a slice selection in order for this option to appear in the menu. (See Selecting slices.)

  • 9 Click Save.

    To copy HTML code to the Clipboard (ImageReady):

    Choose Edit > Copy HTML Code, and choose an option for copying code from the submenu:

  • Copy All Slices to copy HTML code for all slices in the document.
  • Copy Selected Slices to copy HTML code for selected slices only.
  • Copy Preloads to copy the JavaScript portion of the HTML code for slices in the document.

  • ImageReady generates and formats HTML code based on settings in the Output Options dialog box. Be sure to specify HTML options, such as whether to use tables or cascading style sheets, before you copy and paste HTML code. (See Setting HTML output options.)

    To paste the ImageReady HTML code into an HTML document, open the HTML document in the destination application and choose Edit > Paste.

    To update HTML code for an image (ImageReady):

    1 Choose File > Update HTML.

    2 Select the HTML file into which you pasted HTML code for the image.

    3 Select Save Images to save the image file when you update the HTML code for the image.

    4 Click Save.


    Optimizing Images for the Web > Saving optimized images